# assert 1 == 0,"此处发生了什么异常"

def input_password():
    password = input('请输入密码：')
    assert len(password) >= 8,"密码长度不足八位" # 形如： assert 1 == 0,"此处发生了什么异常"
    return password


try:
    password = input_password()
    print(password)
except Exception as e:
    print(f"e的信息 {e}")